#pragma once

#include "jansson.h"
#include <string>
#include <memory>
#include <vector>

//class Business{

    //public:
        //void doLogin(int type, std::string parm1, std::string parm2, message& msg);
        //void doGetMetaData(std::string file_index, message& msg);
        //void doPull(std::string type, int index, std::string& filename, message& msg);
        //void doListVideo(int head, int step, message& msg);

//};


class Video {
	public:

		Video(const std::vector<char>& data, int bounds);
		Video(){}

		std::vector<char> GetHandleResult();
		int GetResponseBounds(){return mResponse.size();}
	private:
		std::string LS();
		std::string PLAY(int vid);
		std::string INFO(int vid);
		std::vector<char> PLAY_START(int vid, int next, int batch);
	private:
		json_t* mData;
		std::string mResponse;


};


